package com.go.where.family.service.impl;

import java.util.Date;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.go.where.family.dao.CustomerScoreDao;
import com.go.where.family.pojo.CustomerScoreInfo;
import com.go.where.family.service.CustomerScoreService;

@Service("customerScoreService")
public class CustomerScoreServiceImpl implements CustomerScoreService {

	@Resource(name = "customerScoreDao")
	private CustomerScoreDao customerScoreDao;

	@Override
	public int save(CustomerScoreInfo customerScoreInfo) {
		customerScoreInfo.setScoreTime(new Date());
		return customerScoreDao.insert(customerScoreInfo);
	}

}
